package com.example.hello;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class SPDBHelper extends SQLiteOpenHelper {
    private static final int VERSION = 1;

    private static final String SPDB_NAME = "mysport.db";

    public static final String sp_TB_NAME = "tb_sport";

    public SPDBHelper(Context context) {
        super(context,SPDB_NAME,null,VERSION);
    }
    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE "+sp_TB_NAME+"(ID INTEGER PRIMARY KEY AUTOINCREMENT,CURNAME TEXT,CURSPORT TEXT)");
    }
    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
